module.exports = {
  chainWebpack: config => {
    config.module
      .rule('vue')
      .use('vue-loader')
      .loader('vue-loader')
      .tap(options => {
        const compile = options.compiler.compile
        options.compiler.compile = (template, info) => {
				
          // if (info.resourcePath.match(/index/)) {
          //   template = template.trim()
          //   template = template.replace(/^<[\d\D]+?>/g, matchedNode => `${matchedNode}<float-button ref="floatButton" />`)
          // }
          return compile(template, info)
        }
        return options
      })
  }
}
